#include "StringUtils.h"

namespace
{
	const int NULL_VALUE = 0;
}

void StringUtils::replaceAll(std::string& whereReplace, const std::string& whatReplace, const char *replacement) {
	if( NULL == replacement )
	{
		return;
	}

	size_t found = ::NULL_VALUE;
	while (std::string::npos != (found = whereReplace.find(whatReplace)))
	{
		whereReplace.replace(found, whatReplace.size(), replacement);
	}
}